﻿using System;

namespace __Ts.Core.ConfigTable
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public class ConfigTableAttribute : Attribute
    {
        /// <summary>
        /// 
        /// </summary>
        public ConfigTableAttribute() { }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="systemId">系统ID</param>
        /// <param name="configTableVersion">权限表版本 (format: xx.xx.xx.xx)</param>
        public ConfigTableAttribute(int systemId, string configTableVersion)
        {
            this.SystemId = systemId;
            this.ConfigTableVersion = configTableVersion;
        }
        /// <summary>
        /// 系统ID
        /// </summary>
        public int SystemId { get; set; }
        /// <summary>
        /// 权限表版本
        /// </summary>
        public string ConfigTableVersion { get; set; }
    }
}
